//
//  ArticleVerboseResModel.swift
//  koolcar
//
//  Created by xiantian on 2023/11/7.
//

import UIKit
import ObjectMapper

class ArticleVerboseResModel: Mappable {
    var code: String?
    var msg: String?
    var data: ArticleVerboseDataModel?
    
    func mapping(map: Map) {
        code <- map["code"]
        msg <- map["msg"]
        data <- map["data"]
    }
    required init?(map: Map) {
        
    }
}

class ArticleVerboseDataModel: Mappable {
    var article : [VerboseArticleModel]?
    var articleCategory : ArticleCategoryModel?
    
    func mapping(map: Map) {
        article <- map["article"]
        articleCategory <- map["articleCategory"]
    }
    required init?(map: Map) {
        
    }
}

class VerboseArticleModel: Mappable {
    var author : String?
    var columnImage : String?
    var columnName : String?
    var content : String?
    var createdTime : String?
    var hits : Int?
    var id : Int?
    var imageUrl : String?
    var isTop : Int?
    var title : String?
    
    func mapping(map: Map) {
        author <- map["author"]
        columnImage <- map["columnImage"]
        columnName <- map["columnName"]
        content <- map["content"]
        createdTime <- map["createdTime"]
        hits <- map["hits"]
        id <- map["id"]
        imageUrl <- map["imageUrl"]
        isTop <- map["isTop"]
        title <- map["title"]
    }
    required init?(map: Map) {
        
    }
}
class ArticleCategoryModel: Mappable {
    var code : String?
    var createdTime : String?
    var delFlag : Int?
    var grade : Int?
    var id : Int?
    var isBottom : Int?
    var isEnable : Int?
    var modifyTime : String?
    var name : String?
    var nameEn : String?
    var nameSc : String?
    var orders : Int?
    var showType : Bool?
    var treePath : String?
    var url : String?
    var urls : String?
    var version : Int?
    
    func mapping(map: Map) {
        code <- map["code"]
        createdTime <- map["createdTime"]
        delFlag <- map["delFlag"]
        grade <- map["grade"]
        id <- map["id"]
        isBottom <- map["isBottom"]
        isEnable <- map["isEnable"]
        modifyTime <- map["modifyTime"]
        name <- map["name"]
        nameEn <- map["nameEn"]
        nameSc <- map["nameSc"]
        orders <- map["orders"]
        showType <- map["showType"]
        treePath <- map["treePath"]
        url <- map["url"]
        urls <- map["urls"]
        version <- map["version"]
        
        
    }
    required init?(map: Map) {
        
    }
}
